package com.micolor.logr.demo.service.log.dict;

import com.micolor.logr.runtime.entity.LogFieldEnum;
import com.micolor.logr.runtime.interfaces.LogFieldEnumInitInterface;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @author EvanGe
 * @Type DictServiceImpl.java
 * @Desc
 * @date 2024/7/8 13:48
 */
@Service("dictServiceImpl")
@Slf4j
public class DictServiceImpl implements LogFieldEnumInitInterface {
    /**
     * 获取枚举类型定义的数据集合
     *
     * @return
     */
    @Override
    public List<LogFieldEnum> getLogFieldEnum(Object enumTypeOrParam) {
        log.debug("enumTypeOrParam:{}",enumTypeOrParam);
        List<LogFieldEnum> logFieldEnums = new ArrayList<>();
        logFieldEnums.add(new LogFieldEnum("Y","正常"));
        logFieldEnums.add(new LogFieldEnum("N","禁用"));
        log.debug("get dict enums :{}",logFieldEnums);
        return logFieldEnums;
    }
}
